#include<sys/types.h>
#include<sys/stat.h>
#include<fcntl.h>
#include<unistd.h>
#define MAXBUFF 1024
const char* FILENAME = "text.txt";
char buff[MAXBUFF]= {0};

int main(){
  int fd = open(FILENAME,O_RDONLY);
  ssize_t ret = read(fd,buff,MAXBUFF);
  write(1,buff,ret);
  return 0;
}
